package edu.sctu.practice.class02.liqing.assignment03.assignment03_03;

/**
 * Created by 123456 on 2015/10/22.
 */
public class CloneableCircle extends Circle implements Cloneable{
   private Name creator = new Name("zhao","yi","huan");
    public CloneableCircle(double radius){
    super(radius);
    }
public Name getCreator(){
    return creator;
}
    public void setCreator(Name name)
    {
        creator = name;
    }
    public Object clone()
    {
        Object o=null;
        try
        {
            o=(CloneableCircle)super.clone();
        }
        catch (CloneNotSupportedException ex)
        {
            return null;
        }
        return o;
    }
    public String toString()
    {
        return super.toString() + " " + creator.getFullname();
    }
}






